package ipe.test;
import android.os.Build;
import android.os.Bundle;
import android.annotation.SuppressLint;
//import android.app.ActionBar;
import android.app.Activity;
import android.content.Intent;
import android.support.v4.app.NavUtils;
//import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.EditText;
public class doritiActivity extends Activity{

//-----------------------------------------------------------------------------------------------------
    
    @SuppressLint("NewApi")
	@Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.doriti_activity);
        
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
            // Show the Up button in the action bar.
            getActionBar().setDisplayHomeAsUpEnabled(true);
            
        }
        
        
        Intent intent = getIntent();
        String message = intent.getStringExtra(MainActivity.MSG2DISP);
        Utils.log(findViewById(R.id.Odkaz).getClass().toString());
        EditText tOdkaz = (EditText) findViewById(R.id.Odkaz);
        tOdkaz.setText("Tak ty si povedal, ze "+message+" a ze moja babka nevie korculovat!?");
    }
    
//-----------------------------------------------------------------------------------------------------
    
    @Override
    public boolean onOptionsItemSelected(MenuItem item) {
        switch (item.getItemId()) {
        case android.R.id.home:
            NavUtils.navigateUpFromSameTask(this);
            return true;
        }
        return super.onOptionsItemSelected(item);
    } 
    
//-----------------------------------------------------------------------------------------------------
    
    public void fuckOffClick(View v){
    	finish();
    }
}
